set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set_directory_properties(PROPERTIES COMPILE_DEFINITIONS_DEBUG "_DEBUG")

add_subdirectory(normal)
add_subdirectory(visual)
add_subdirectory(filter)

link_directories(${PROJECT_SOURCE_DIR}/lib)

include_directories(${PROJECT_SOURCE_DIR}/include/normal)
include_directories(${PROJECT_SOURCE_DIR}/include/visual)
include_directories(${PROJECT_SOURCE_DIR}/include/filter)

include_directories(/usr/include/pcl-1.8)

set(Normal_LIBS normal)
set(Visual_LIBS visual)
set(Filter_LIBS filter)

include_directories(${PCL_INCLUDE_DIRS})

link_directories(${PCL_LIBRARY_DIRS})

add_definitions(${PCL_DEFINITIONS})

add_executable(pclTest main.cpp)

find_package(PCL 1.8 REQUIRED)

target_link_libraries(pclTest ${PCL_LIBRARIES} ${Normal_LIBS} ${Visual_LIBS} ${Filter_LIBS})